import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "home",
    component: () => import("../views/designer"),
  },
  {
    path: "/designer",
    name: "designer",
    component: () => import("../views/designer"),
  },
  {
    path: "/pageviewer",
    name: "pageviewer",
    component: () => import("../views/pageViewer/index.vue"),
  },
  {
    path: "/mock",
    name: "mock",
    component: () => import("../views/mock"),
  },
];

const router = new VueRouter({
  routes,
});

export default router;
